<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            width: 300px;
            transition: all 3s;
        }
        /* 鼠标放到图片上，添加旋转效果 */
        img:hover {
            /* 正数 顺时针 */
            transform: rotate(360deg);
            /* 负数 逆时针 */
            transform: rotate(-360deg);
        }
    </style>
</head>
<body>
    <img src="../img/rotate.png" alt="">
</body>
</html>